package com.c6906.vdam.dps.dao;

import com.c6906.vdam.dps.entity.TerminalDMData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Auther: taohuiqi
 * @Date: 2024/06/15/10:37
 * @Description:
 */
@Mapper
public interface TerminalDataDAO {

    /**
     * 批量插入数据
     *
     * @return
     */
    int batchInsert(@Param("list") List<TerminalDMData> list);


    /**
     * 根据车牌号和时间段查询停车数据
     */
    List<TerminalDMData> selectNoTaskAndParkingData(@Param("terminalSn") String terminalSn, @Param("partitionField") int partitionField, @Param("startTime") String startTime, @Param("endTime") String endTime);

    /**
     * 根据车牌号和时间段查询行驶数据
     */
    List<TerminalDMData> selectDrivingDataByPlateAndTime(@Param("terminalSn") String terminalSn, @Param("partitionField") int partitionField, @Param("startTime") String startTime, @Param("endTime") String endTime);
}
